{% load treemenu_tags %}
<li class="{% if menuitem.pk == active_menuitem_pk %}active{% elif open %}active open{% else %}{% endif %}">
    <a href="/report/theme/{{ theme_id }}/detail/{{ menuitem.related_reports.first.pk }}" {% if menuitem.has_children %}class="dropdown-toggle"{% endif %}>
        <i class="menu-icon fa {{ menuitem.icon }}"></i>
        <span class="menu-text">{{ menuitem.label }}</span>
        {% if menuitem.has_children %}
            <b class="arrow fa fa-angle-down"></b>
        {% endif %}
    </a>
    {% if menuitem.has_children %}
        <b class="arrow"></b>
        <ul class="submenu">
            {% for child in menuitem.children %}
                {% show_side_menuitem child.pk active_menuitem_pk %}
            {% endfor %}
        </ul>
    {% endif %}
</li>
